x86/iommu: switch the hwdom mapping function to use page_get_type
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 7 Sep 2018 09:08:00 +0000 (11:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Sep 2018 14:32:58 +0000 (16:32 +0200)
commit6bf0be5af852f2317b75ab94f1d2bb045ebef452
treef189fb8135a97fc98632c42e750476d75f2289f4
parent7f855b514146478dfdd1f796ed5578a138164d11
x86/iommu: switch the hwdom mapping function to use page_get_type

This avoids repeated calls to page_is_ram_type which improves
performance and makes the code easier to read.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/drivers/passthrough/x86/iommu.c